package com.czq.electricity.parse.controller;

import com.czq.electricity.parse.param.ImportParam;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

@RestController
@RequestMapping("/import")
public class ImportController {

    @PostMapping(value = "/parse", headers = "content-type=multipart/form-data")
    public String importExcel(@RequestParam MultipartFile multipartFile, ImportParam param){

        return "hello";
    }

}
